const path = require('path')

const RunPlugins = require('./plugins/run-plugins')
const DonePlugins = require('./plugins/done-plugins')

module.exports = {
  entry: './src/index.js',
  output: {
    path: path.resolve(__dirname, './dist'),
    filename: 'main.js'
  },
  module:{
    rules:[
        {
            test:/\.js/,
            use:[
                path.resolve(__dirname,'loaders','loader1.js'),
                path.resolve(__dirname,'loaders','loader2.js')
            ]
        }
    ]
},
plugins:[
    new RunPlugins(),
    new DonePlugins()
]
}